<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<f:view locale="#{sessionBean.localeCode}">
	<h:head>
		<title>#{msgs.titrePanelPrincipal}</title>
		<link type="text/css" rel="stylesheet"
			href="#{facesContext.externalContext.requestContextPath}/css/styles.css" />
	</h:head>
	<h:body background="">

		<h:form id="languageForm">
			<h:outputText value="#{msgs.utilisateur}: #{request.remoteUser}" />
			<p:spacer width="100" height="10" />
			<h:outputText value="#{msgs.langue}: " />
			<h:selectOneMenu id="languageChoice"
				value="#{sessionBean.localeCode}" onchange="submit()"
				valueChangeListener="#{sessionBean.countryLocaleCodeChanged}">
				<f:selectItems var="item" itemLabel="#{item.displayName}"
					value="#{sessionBean.countries}" />
				<f:converter converterId="LocaleConverter" />
			</h:selectOneMenu>
			<p:message id="msgForLanguageChoice" for="languageChoice" />

		</h:form>

		<div class="container"></div>

		<ui:insert name="content" />
	</h:body>
	
</f:view>
</html>